package wqh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.DtGeoBuildingDao;
import wqh.domain.DtGeoBuilding;
import wqh.service.DtGeoBuildingService;

import java.util.List;

/**
 * Created by devts on 2016/11/30.
 */
@Service("dtGeoBuildingService")
public class DtGeoBuildingServiceImpl implements DtGeoBuildingService{

    @Autowired
    private DtGeoBuildingDao geoBuildingDao;

    public List<DtGeoBuilding> findAllRecord() {
        return this.geoBuildingDao.findAllRecord();
    }

    public List<DtGeoBuilding> findRecordByClass(DtGeoBuilding geoBuilding) {
        return this.geoBuildingDao.findRecordByClass(geoBuilding);
    }

    public List<DtGeoBuilding> findRecordByClass2(DtGeoBuilding geoBuilding) {
        return this.geoBuildingDao.findRecordByClass2(geoBuilding);
    }

    public List<DtGeoBuilding> findAllByParentId(Integer parent_id){
        return this.geoBuildingDao.findAllByParentId(parent_id);
    }

    public DtGeoBuilding findRecordById(Integer id) {
        return this.geoBuildingDao.findRecordById(id);
    }

    public String findNameById(Integer id) {
        return this.geoBuildingDao.findNameById(id);
    }

    public int insertRecord(DtGeoBuilding geoBuilding) {
        return this.geoBuildingDao.insertRecord(geoBuilding);
    }

    public int updateRecord(DtGeoBuilding geoBuilding) {
        return this.geoBuildingDao.updateRecord(geoBuilding);
    }

    public int deleteRecord(Integer id) {
        return this.geoBuildingDao.deleteRecord(id);
    }

}
